Technical Q&A QA1034
How to define a plst resource in a .r file


Q: What's the syntax for defining a plst resource in a .r file? Is there a plist resource template?

A: There is no plst resource template but you can use the PropertyList Editor under Mac OS X or any text editor to create your XML .plist file. You can then add this file to your project by reading it in with the following line in any .r file:

read 'plst' (0) "MyFile.plist"

If the .r and .plist files are not in the same folder make sure that you use a full or relative path.

Further Reference:

Technical Note TN2013, "The 'plst' Resource".


[May 09 2001]


Developer Documentation | Technical Notes | Development Kits | Sample Code